package ycl.common.models.req;

import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * id与名字
 *
 * @author ycl
 * @date 2022/7/8 0008 9:04:00
 */
@Data
@ApiModel("id与名字")
public class IdNameReq {

	@Schema(description = "id")
	@NotNull(message = "id不能为空")
	private Long id;


	@Schema(description = "name")
	@NotBlank(message = "名字不能为空")
	private String name;
}
